import { ModelBag } from "../model/ModelBag";
import { ModelGame } from "../model/ModelGame";
import { ModelInfo } from "../model/ModelInfo";
import { ModelLobby } from "../model/ModelLobby";
import { ModelLogin } from "../model/ModelLogin";
import { ModelSupport } from "../model/ModelSupport";

/**消息模块 */
export class GameModels {
    public static login: ModelLogin;
    public static info: ModelInfo;
    public static lobby: ModelLobby;
    public static game: ModelGame;
    public static support: ModelSupport;
    public static bag: ModelBag;
    public static init(): void {
        GameModels.login = new ModelLogin();
        GameModels.info = new ModelInfo();
        GameModels.lobby = new ModelLobby();
        GameModels.game = new ModelGame();
        GameModels.support = new ModelSupport();
        GameModels.bag = new ModelBag();
    }
    public static regRouteMap(): void {
        GameModels.lobby.regRouteMap();
    }
}